@import "../mixins/index.scss";
@import "../variables/default.scss";

.image-picker {
  &__title {
    @include display-flex();
    @include justify-content(space-between);
    
    p:nth-child(1) {
      font-size: $font-size-xl;
      line-height: $line-height-zh;
      color: $color-text-title;
      font-weight: 500;
    }

    p:nth-child(2) {
      font-size: 14px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      line-height: 24px;
      color: #c3cbcf;
    }
  }
  &__description {
    font-size: 13px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 17px;
    color: #c3cbcf;
  }
  &__content {
    margin-top: 10px;
    padding-bottom: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0px 0px 18px 0px rgb(68 89 118 / 25%);
    overflow: hidden;

    &-list {
      width: 100%;
      @include display-flex();
      @include justify-content();
      @include flex-wrap(wrap);
      padding-left: 10px;

      &--item {
        position: relative;
        width: 6.5rem;
        height: 6.5rem;
        margin: 1% 2.5% 0 0;
        margin-top: 10px;

        label {
          position: relative;
          display: block;
          border: 0.1rem solid #ccc;
          height: 6.5rem;
          box-sizing: border-box;
          &::after {
            content: "";
            position: absolute;
            top: 10px;
            left: 50%;
            width: 1px;
            height: 80%;
            background-color: #ccc;
          }
          &::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 10px;
            width: 80%;
            height: 1px;
            background-color: #ccc;
          }
        }

        input {
          display: none;
        }

        img {
          width: 100%;
          height: 100%;
          font-size: 0;
        }

        &--del {
          position: absolute;
          right: -6px;
          top: -6px;
          width: 20px;
          height: 20px;
          text-align: center;
          line-height: 17px;
          border-radius: 100%;
          background-color: #ff5053;
          color: #f3f3f3;
          border: solid 1px #ff5053;
        }
      }
       @media only screen and (max-width: 391px) {
          &--item {
            width: $jlf-detail-images-width;
            height: $jlf-detail-images-height;
          }
        }
    }
  }
}
